|
CATIA V5 Programmierung : New from CATPart direkt in CATProduct einfügen
imation1999 am 17.05.2019 um 08:56 Uhr (1)
Hallo Zusammen,wenn ich ein "NewFrom..." mit Makro erstelle, dann kann ich das neue CATPart nicht umbenennen. Kann man die Name irgendwie vorher angeben?Ich möchte mehrere Datei mit "NewFrom..." erstellen, dann letztendlich alles abspeichern.Danke im Voraus!
| | In das Form CATIA V5 Programmierung wechseln |
|
CATIA V5 Programmierung : Schleife für Dxf-Umwandlung inkl. Farb- und Layer-änderung
imation1999 am 29.11.2013 um 07:15 Uhr (1)
Hallo,lass mal selection2 weg. Einfach mit selection1 weterarbeiten.Code:......Dim selection1 As SelectionSet selection1 = Document.SelectionFor i = 1 To oFolder.Files.Count Set oFile = oFolder.Files.Item(i) If Right(oFile.Name, 10) = "CATDrawing" Then Name = Left(oFile.Name, Len(oFile.Name) - 11) Datei = Pfad + Name + ".CATDrawing" F = F + 1 Set oActiveDoc = CATIA.Documents.Open(Datei) Set Document = CATIA.ActiveDocumentselection1.Search "Weight=0,2mm,all"Selection1.VisProperties.SetLay ...
| | In das Form CATIA V5 Programmierung wechseln |
|
CATIA V5 Programmierung : Schleife für Dxf-Umwandlung inkl. Farb- und Layer-änderung
imation1999 am 29.11.2013 um 17:00 Uhr (1)
Achso thja, mein Fehler!Versuch mal so...Code:......Dim selection1 As SelectionFor i = 1 To oFolder.Files.Count Set oFile = oFolder.Files.Item(i) If Right(oFile.Name, 10) = "CATDrawing" Then Name = Left(oFile.Name, Len(oFile.Name) - 11) Datei = Pfad + Name + ".CATDrawing" F = F + 1 Set oActiveDoc = CATIA.Documents.Open(Datei) Set Document = CATIA.ActiveDocument Set selection1 = Document.Selectionselection1.Search "Weight=0,2mm,all"Selection1.VisProperties.SetLayer catVisLayerBasic, 1s ...
| | In das Form CATIA V5 Programmierung wechseln |
|
Anzeige:
Anzeige: (Infos zum Werbeplatz)
 |